#include<stdio.h>
#define MAXN 100+10
int a[MAXN];
int main()
{
    int i, x, n = 0;
    while(scanf("%d", &x)==1)
        a[n++] = x;
    printf("hello world!\n");
    for(i = n-1; i >= 1; i--)
        printf("%d ", a[i]);
    printf("%d\n", a[0]);
    return 0;
}
